package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.GroupNotice;
import cn.stylefeng.guns.sys.modular.system.model.params.GroupNoticeParam;
import cn.stylefeng.guns.sys.modular.system.model.result.GroupNoticeApiBeenSeenResult;
import cn.stylefeng.guns.sys.modular.system.model.result.GroupNoticeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2021-07-26
 */
public interface GroupNoticeMapper extends BaseMapper<GroupNotice> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    List<GroupNoticeResult> customList(@Param("paramCondition") GroupNoticeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") GroupNoticeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    Page<GroupNoticeResult> customPageList(@Param("page") Page page, @Param("paramCondition") GroupNoticeParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") GroupNoticeParam paramCondition);

    Page<GroupNoticeResult> findNoticePagePushData(Page page, @Param("paramCondition") GroupNoticeParam param);

    Page<GroupNoticeResult> findNoticePageReceiveData(Page page, @Param("paramCondition") GroupNoticeParam param);

    Page<GroupNoticeApiBeenSeenResult> findNoticePageBeenSeenData(Page pageContext, @Param("paramCondition") GroupNoticeParam param);

    GroupNoticeResult findOneNoticeById(@Param("paramCondition") GroupNoticeParam param);

    List<String> findUserNameList(@Param("noticeId") Long noticeId);

    List<GroupNoticeResult> findListBySpec(@Param("paramCondition") GroupNoticeParam param);

}
